<?php

session_start();
print_r($_SESSION);
die;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/7
 * Time: 8:14
 */
//清空cookies
//1.设置值为空
//setcookie('userid','',time()+24*3600);
//2.设置效期为过去时间
//setcookie('userid','119',time()-24*3600);
//3  1+2
setcookie('userid','',time()-24*3600);

echo '退出成功！';